#if !defined(AFX_DLGTOOLBAR_H__1EAC4346_1679_4FC2_90B8_1FB85F1538BB__INCLUDED_)
#define AFX_DLGTOOLBAR_H__1EAC4346_1679_4FC2_90B8_1FB85F1538BB__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgToolViewSwicth.h : header file

#include "..\..\Inc\Center\WzdToolTipCtrl.h"

#define  DLG_TOOL_BAR_HEIGHT 26
/////////////////////////////////////////////////////////////////////////////
// CDlgToolBar dialog

class CDlgToolBar : public CDialogBar
{
protected:
	HBITMAP OemBitmap ;
	int OemPosx,OemPosy,OemWidth,OemHeight;
protected:
 	BOOL			m_bCapture		;
	BOOL			m_bLButtonDown  ;
	BOOL			m_bShowText		;
	BOOL			m_bEnableMove   ;
	BOOL			m_bFillComboBoxList	;
	int             m_nWidth		;
	int             m_nBtnCount		;
	CTmButton*		m_pBtn[20]		;
	CWzdToolTipCtrl m_tip			;
	int             m_nDlgID        ;
	char            m_szDlgName[32] ;
	HCURSOR			m_hMoveCursor	;
	HCURSOR			m_hArrowCursor	;
  	void	ShowHelp();
	void	HideHelp();
	int 	SetCurMap();
public:
	BOOL	Create(CWnd* pParentWnd, UINT nDlgID,UINT nStyle,char* szDlgName);
	virtual int 	CreateBar();
	virtual void	FillComboBoxList(){return;};
public:
 	int     GetWidth(){return m_nWidth;};
	void	EnableButton(int nID, BOOL bEnable);
	void	SetButtonHint(int nID,char *szHint,int nLen);
	void	SetButtonStyle(BOOL bShowText){m_bShowText = bShowText;};
	void	GetButtonEnable(BOOL* pEnable);
	void	SetButtonEnable(BOOL* pEnable);
	void	GetButtonCheck(BOOL* pCheck);
	void	SetButtonCheck(BOOL* pCheck);
	BOOL	GetButtonEnable(int nID);
	BOOL	GetButtonCheck(int nID);
	void	SetButtonCheck(int nID, BOOL bCheck);

public:
	virtual void	EnableComboBox(int nID, BOOL bEnable){return;};
	virtual BOOL    PreTranslateMessage(MSG* pMsg);
	// Construction
public:
	CDlgToolBar(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CDlgToolBar)
	enum { IDD = IDD_Dlg_Tool_Bar };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA
 
	//{{AFX_VIRTUAL(CDlgToolBar)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnUpdateCmdUI(CFrameWnd* pTarget,BOOL bDisableIfNoHndler);
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CDlgToolBar)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
 	afx_msg void OnDestroy();
	afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
	afx_msg void OnPaint();
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnMove(int x, int y);
	afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DLGTOOLVIEWSWICTH_H__1EAC4346_1679_4FC2_90B8_1FB85F1538BB__INCLUDED_)
